package com.hotacorp.opencloud.userservice.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hotacorp.opencloud.userservice.entity.SysUserRoleEntity;

/**
 * 用户与角色对应关系接口
 *
 * @author lwg
 * @email lwg@gmail.com
 * @date 2019-12-25 11:52:19
 */
public interface SysUserRoleService extends IService<SysUserRoleEntity> {
	/**
	 * 根据用户ID，获取角色ID列表
	 */
	List<Long> queryRoleIdList(Long userId, Long tenantid);
	void saveOrUpdate(Long userId, List<Long> roleIdList, Long tenantid);
	void removeUsers(List<Long> userIds, Long tenantid);
	void removeRoles(List<Long> roleIds, Long tenantid);
}

